package is.progetto2.gui;

import is.progetto2.activity.Activity;
import is.progetto2.activity.Bind;

import javax.swing.AbstractListModel;

public class BindListModel extends AbstractListModel<Bind> {

	private static final long serialVersionUID = -6937494268073352820L;
	private Activity activity;
	
	public BindListModel(Activity a){
		this.activity=a;
	}
	
	@Override
	public Bind getElementAt(int arg0) {
		return activity.getBind(arg0);
	}

	@Override
	public int getSize() {
		return activity.getBindSize();
	}

}
